const express = require("express");
const { updateSettingServices, getSettingServices } = require("../services/settingServices");
const router = express.Router();

//修改全局设置
router.put("/", async (req, res, next) => {
    res.send(await updateSettingServices(req.body));
});


// 获取全局设置
router.get("/", async (req, res, next) => {
    res.send(await getSettingServices());
});

module.exports = router;